<?php
include("../seguranca.php"); // Inclui o arquivo com o sistema de segurança
protegePagina(); // Chama a função que protege a página
?>
<!DOCTYPE html lang="pt-BR">
<head>    
<link href="../style/esquema.css" rel="stylesheet">
<script type="text/javascript" src="../script/script.js"></script>
<meta charset="UTF-8">
<title>Wise-Car</title>
</head>

<body>
<div align="right" class="geral">
   	<div id="content" align="center">
    <div class="logoff">
    <a href="http://localhost/wisecar/view/index.php"><input class="botaoSair" type="button" value="Home"></a>
    <a href="http://localhost/wisecar/index.php"><input class="botaoSair" type="button" value="Logoff"></a>
    </div>
    <h1>Cadastrar Ve&iacute;culo</h1>
	<form action="../controller/cadastrarVeiculo.php" onSubmit="return verificaVeiculo()" method="post">
	<table align="center" border="0">
    <tr>
    	<td>
			<label for="Placa">Placa</label>
		</td><td>
			<input type="text" name="Placa"  id="placa" onKeyUp="valida(this);" maxlength="8" />
		</td>
    </tr>
	<tr>
    	<td>  
			<label for="MarcaVeiculo">Marca do Veículo</label>
		</td><td>
	  		<select name="Marca" id="Marca">
			<option value="1">Fiat</option>
			<option value="2">Chevrolet</option>
			<option value="3">Ford</option>
			<option value="4">GM</option>
			<option value="5">Renault</option>	
			<option value="6">Jac Motors</option>
			<option value="7">Peugeot</option>
			<option value="8">KIA</option>
		  	<option selected="selected" value=""></option>
	  		</select>
  		</td>
	</tr>
  	<tr>
    	<td>
			<label for="ModeloVeiculo">Modelo do Veículo</label>
		</td><td>
  			<input type="text" name="Modelo" id="Modelo" />
  		</td>
	</tr>
    <tr>
  		<td>
	  		<label for="AnoModelo">Ano do Modelo</label>
		</td><td>
	  		<input type="text" name="AnoModelo" onBlur="verificaAnoModelo();" maxlength="4" id="AnoModelo" onKeyPress="return isNumber(event)"/>
		</td>
	</tr>
	<tr>
  		<td>
	  		<label for="AnoFabricacao">Ano de Fabricação</label>
		</td><td>
	  		<input type="text" name="AnoFabricacao" onBlur="verificaAnoFabricacao();" maxlength="4" id="AnoFabricacao" onKeyPress="return isNumber(event)"/>
		</td>
	</tr>
	<tr>
  		<td>
	  		<label for="Cor">Cor do Veículo</label>
		</td><td>
	  		<select name="Cor" id="Cor">
		  	<option value="1">Branco</option>
		  	<option value="2">Preto</option>
		  	<option value="3">Vermelho</option>
		  	<option value="4">Azul</option>
		  	<option value="5">Verde</option>	
		  	<option value="6">Prata</option>
		  	<option value="7">Amarelo</option>
		  	<option selected="selected" value=""></option>
	  		</select>
  		</td>
	</tr>
	<tr>
  		<td>
	  		<label for="Combustivel">Combustível</label>
	  	</td><td>
	  		<select name="Combustivel" id="Combustivel">
		  	<option value="1">Gasolina</option>
		  	<option value="2">Alcool</option>
		  	<option value="3">Bicombustivel</option>
		  	<option value="4">GNV</option>
		  	<option value="6">Diesel</option>
			<option value="7">Tricombustivel</option>
			<option selected="selected" value=""></option>
			</select>
  		</td>
	</tr>
    <tr>
    	<td colspan="2">
    	    <label for="Opcionais">Opcionais</label>:<br/><br/>
			<textarea id="Opcionais" name="Opcionais" cols="30" rows="3"></textarea>
    	</td>
    </tr>
    <tr>
		<td colspan="2" align="center">
			<a href="gerenciarVeiculos.php"><input type="button" value="Voltar"></a>
			<input type="reset" value="Limpar">
			<input type="submit" value="Enviar">
		</td>
	</tr>
	</table>
	</form>
	</div>
</div>
</body>
</html>